<template>
  <div class="box">
    <h3>路由列表</h3>
    <template v-for="item in routes">
      <div>
        <router-link v-if="!item.hidden" :to="item.path">{{ item.name }}</router-link>
      </div>
    </template>
  </div>
</template>

<script setup>
import { routes } from "./router/router";
</script>

<style lang="less" scoped>
.box {
  padding: 10px;
}
</style>
